package com.ruoyi.system.domain.deviceAlarm;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;

@Data
public class InfoAlarm {
    private String timeStamp;
    private Boolean wearstate;
    private int lowpowerPercentage;
    private int poweroffPercentage;
    private String interceptNumber;

    public InfoAlarm(JSONObject data){
        timeStamp=(String)data.get("timeStamp");
        wearstate=(Boolean) data.get("wearstate");
        lowpowerPercentage=(Integer)data.get("lowpowerPercentage");
        poweroffPercentage=(Integer)data.get("poweroffPercentage");
        interceptNumber=(String)data.get("interceptNumber");
    }
}